package com.injurydetection.www.widget;

import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.NonNull;

import com.injurydetection.www.R;

/**
 * Created by sunguiyong on 2020/9/21
 */
public class NormalDialog extends Dialog {
    private TextView title;
    private String titleName;

    public NormalDialog(@NonNull Context context, int themeResId, String title) {
        super(context, themeResId);
        this.titleName = title;
        View view = LayoutInflater.from(context).inflate(R.layout.dialog_normal, null);
        setContentView(view);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        title = findViewById(R.id.title_tv);
        title.setText(titleName);
    }
}
